{% extends 'base.html' %}

{% block title %}
    login
{% endblock %}

{% block content %}
<section id="login" class="bg-light py-5">
    <div class="container">
        <div class="row">
            <dic class="col-md-6 mx-auto">
                <div class="card">
                    <div class="card-header bg-primary text-white">
                        <h4><i class="fas fa-sign-in-alt"></i>login</h4>
                    </div>
                    <div class="card-body">
                        {% include 'partials/_alerts.html' %}
                        <form action="{% url 'login' %}" method="POST">
                            {% csrf_token %}
                            <div class="form-group">
                                <label for="username">Username</label>
                                <input type="text" name="username" class="form-control" required>
                            </div>
                            <div class="form-group">
                                <label for="pasword2">Password</label>
                                <input type="password" name="password" class="form-control" required>
                            </div>
                            <input type="submit" value="Login" class="bth btn-secondary btn-block">
                        </form>
                    </div>
                </div>
            </dic>
        </div>
    </div>
</section>
{% endblock %}